package com.example.pojo;

import lombok.Data;

import javax.persistence.Table;

/**
 * 用户类
 *
 * @author Chengfei
 * @date 2020/8/22 8:13
 */
@Data
@Table(name = "user",catalog = "user")
public class User {

    private Integer id;
    private String username;
    private String password;
    private String name;

    public User() {
    }

    public User(String username, String password, String name) {
        this.username = username;
        this.password = password;
        this.name = name;
    }

    public User(Integer id, String username, String password, String name) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.name = name;
    }
}
